<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<link rel="stylesheet" href="./Tpl/css/bootstrap.min.css">
	<style type="text/css">
	.content{
		width: 1000px;
		height: 800px;
		background: #C3C3C3 url() 0 0 no-repeat;
		margin: 0 auto;
	}
	.top{
		width: 100%;
		height: 40px;
		background: #272822 url() 0 0 no-repeat;
	}
	.top .box_top{
		width: 1000px;
		height: 1000px;

	}
	.top .box_top h3{
		color: #FFFFFF;
		line-height: 40px;
	
	}
	.centre{
		width: 100%;
		height: 100px;
		margin: 0 auto;
	}
	.mulv{
		width: 1000px;
		height: 100%;
		margin: 0 auto;
	}
	.BG{
		width: 800px;
		margin-left: 20px;
		margin: 0 auto;
		border-right:none; 
    	border-left:none;
	}
	.mulv img{
		width: 50px;
		height: 50px;
	}
	.DingBu{
		width: 100%;
		height: 50px;
		background: #3B3B3B url() 0 0 no-repeat;
	}
	.mulv td{
		color: #7F7F7F;
		height: 50px;

	}



	</style>
</head>
<body>
	<div class="content">
		<div class="top">
			<div class="box_top">
				<h3>网盘：实现文件上传、下载</h3>
			
			</div>
		</div>
	
		<div class="centre">
			<form action="./upload.php" method="post" enctype="multipart/form-data">
			
			<input type="file" name="file">
			<!-- <br> -->
			<input type="submit" style="border:none;border-radius:3px;background: #00A2E8" value="上传">
			</form>			
		</div>
		<div class="mulv">
			<table class="BG">
				<tr class="DingBu">
					<td>图片</td>
					<td>图片名</td>
					<td>上传时间</td>
					<td>文件大小</td>
					<td>下载</td>
					<td>删除</td>
				</tr>
				<?php foreach ($res as $k => $v) { ?>
						
				<tr>
					<td><img src="./<?php echo $v ?>" alt=""></td>
					<td><?php echo basename($v); ?></td>
					<td><?php echo date("Y-m-d H:i:s", filemtime($v)); ?></td>
					<td><?php echo filesize($v); ?></td>
					<td>
						<a href="./xiazai.php?id=<?php echo $k ?>">
						<img src="./image/1.png" alt="" style="width: 30px;
						height: 30px;">
						</a>
					</td>
					<td>
						<a href="./del.php?id=<?php echo $k ?>">
						<img src="./image/2.png" alt="" style="width: 20px;
						height: 20px;">
						</a>
					</td>

				</tr>
				<?php } ?>
			</table>

		</div>	
		
	</div>
</body>
</html>